/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.socialNet.manager;

import java.util.ResourceBundle;

/**
 *
 * @author Ann
 */
public class Config {

    private static Config instance;
    private ResourceBundle resource;
    private static final String bundlename = "com.bionic.socialNet.manager.Config";
    public static final String driver = "driver";
    public static final String url = "url";
    public static final String mainLogin = "mainLogin";
    public static final String mainPassword = "mainPassword";
    public static final String MAIN_PAGE = "main";
    public static final String ERROR = "error";
    public static final String LOGIN = "login";
    public static final String USER_PROFILE = "userProfile";
    public static final String REGISTER = "register";
    public static final String PROFILE_EDIT = "profileEdit";
    public static final String FRIENDS = "friends";
    public static final String COMMON_PROFILE = "commonProfile";
    public static final String FIND_FRIENDS = "findFriends";

    public static Config getInstance() {
        if (instance == null) {
            instance = new Config();
        }
        instance.resource = ResourceBundle.getBundle(bundlename);
        return instance;
    }

    public String getProperty(String key) {
        return (String) resource.getObject(key);
    }
}
